{ pkgs, ... }:
let
  configure-gtk = pkgs.writeTextFile {
    name = "configure-gtk";
    destination = "/bin/configure-gtk";
    executable = true;
    text = let
      schema = pkgs.gsettings-desktop-schemas;
      datadir = "${schema}/share/gsettings-schemas/${schema.name}";
    in ''
        export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS
        gnome_schema=org.gnome.desktop.interface
        gsettings set $gnome_schema gtk-theme 'Dracula'
        gsettings set $gnome_schema icon-theme 'Dracula'
       '';
  };
in {
  environment.systemPackages = with pkgs; [
    kitty
    kitty-themes
    configure-gtk
    glib # gsettings
    dracula-theme # gtk theme
    qt5ct
    unstable.dracula-icon-theme
    gnome3.adwaita-icon-theme # default gnome cursors
    power-profiles-daemon

    networkmanagerapplet
  ];
}
